<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style>
        .file_input{
            width: 25%;
            height: 36px;
            padding: 6px 12px;
            font-size: 14px;
            line-height: 1.42857143;
            color: #555;
            background-color: #fff;
            background-image: none;
            border: 1px solid #ccc;
            border-radius: 4px;
        }
    </style>
</head>
<body>
<h3 class="sub-header">编辑友情链接</h3>
<form method='post' action='{:U("Admin/Excel/upload")}' enctype='multipart/form-data'>
    <table class="table table-striped table-hover">

        <tr>
            <td><h4>导入Excel表：</h4></td>
            <td>
                <input id="lefile" type="file" style="display:none" name="file_stu">
                <div class="input-append">
                    <a   class="button button-royal button-rounded" style="line-height: 35px; height: 35px" onclick="$('input[id=lefile]').click();">选择Excel文件</a>
                    <input id="photoCover" class="file_input" type="text">
                </div>
            </td>
        </tr>
        <tr>
            <td></td>
            <td><input style="width:200px" class="btn btn-primary"  type='submit'  value='导入' /></td>
        </tr>
    </table>
</form>
<link href="__PUBLIC__/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="__PUBLIC__/bootstrap/css/button.css" rel="stylesheet">
<script src="__PUBLIC__/bootstrap/js/jquery-1.9.1.js"></script>
<script src="__PUBLIC__/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript">
    $('input[id=lefile]').change(function() {
        $('#photoCover').val($(this).val());
    });
</script>
</body>
</html>